package pack601;
/**
 * @author wenze-zero
 */
public class ProxyStar implements Star {
    private Star star;
    public ProxyStar(Star star) { //到时候传进来真实的star
        super();
        this.star = star;
    }
    @Override
    public void confer() {
        System.out.println("ProxyStar.confer()");
    }
    @Override
    public void sing() {
        star.sing(); //让他本人来唱
    }
    @Override
    public void collectMoney() {
        System.out.println("ProxyStar.collectMoney()");
    }
}